using SubsidiosBussinessLogic.Models;
using SubsidiosBussinessLogic.DataAccess.Interfaces;

namespace SubsidiosBussinessLogic.DataAccess.SqlServerRepository
{
    public class SolicitudRepository : Repository<Solicitud>
    {
        public SolicitudRepository(IDataContextFactory dataContextFactory) : base(dataContextFactory)
        {
        }

        public Solicitud CreateSolicitud()
        {
            return CreateInstance();
        }

        public void DeleteSolicitud(Solicitud solicitud)
        {
            MarkForDeletion(solicitud);
            SaveAll();
        }

        public void SaveSolicitud()
        {
            SaveAll();
        }

        
    }
}